package com.enation.app.shop.front.api.utils;

import org.apache.poi.ss.formula.functions.T;

import java.util.List;


public class PageUtil {
    private static final long serialVersionUID = 755183539178076901L;
    private Long total; //总页数
    private Long records; // 总记录数
    private int page; //当前页
    private List<T> rows; //记录

    public PageUtil() {
    }

    public PageUtil(Long total, Long records, int page, List<T> data) {

        this.total = total;
        this.records = records;
        this.page=page;
        this.rows =data;
    }

    public List<T> getRows() {
        return this.rows;
    }

    public void setRows(List<T> data) {
        this.rows = data;
    }

    public Long getTotal() {
        return this.total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Long  getRecords()
    {
        return  this.records;
    }

    public void  setRecords(Long records)
    {
        this.records = records;
    }


    public int getPage()
    {
        return  this.page;
    }

    public  void  setPage(int page)
    {
        this.page = page;
    }




}
